package jp.co.sn.mml.pojo.tsIrFileSbkr;


public class TsIrFileSbkrId implements java.io.Serializable { 

	//アップロード区分
	private String uploadKbn;
	//コード
	private String egsCd;
	//年
	private String uploadYear;
	//月
	private String uploadMon;

	/** default constructor */
	public TsIrFileSbkrId(){

	}

	/** full constructor */
	public TsIrFileSbkrId(String uploadKbn,String egsCd,String uploadYear
			,String uploadMon){
		this.uploadKbn = uploadKbn;
		this.egsCd = egsCd;
		this.uploadYear = uploadYear;
		this.uploadMon = uploadMon;
	}

	//Property accessors
	public String getUploadKbn(){
		return this.uploadKbn;
	}

	public void setUploadKbn(String uploadKbn){
		this.uploadKbn=uploadKbn;
	}

	public String getEgsCd(){
		return this.egsCd;
	}

	public void setEgsCd(String egsCd){
		this.egsCd=egsCd;
	}

	public String getUploadYear(){
		return this.uploadYear;
	}

	public void setUploadYear(String uploadYear){
		this.uploadYear=uploadYear;
	}

	public String getUploadMon(){
		return this.uploadMon;
	}

	public void setUploadMon(String uploadMon){
		this.uploadMon=uploadMon;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TsIrFileSbkrId))
			return false;

		TsIrFileSbkrId castOther = (TsIrFileSbkrId) other;

		return ((this.getUploadKbn() ==  castOther.getUploadKbn())
				||(this.getUploadKbn()!=null && castOther.getUploadKbn() !=null 
					&& castOther.getUploadKbn() !=null 
					&& this.getUploadKbn().equals(castOther.getUploadKbn())))
			&& ((this.getEgsCd() ==  castOther.getEgsCd())
				||(this.getEgsCd()!=null && castOther.getEgsCd() !=null 
					&& castOther.getEgsCd() !=null 
					&& this.getEgsCd().equals(castOther.getEgsCd())))
			&& ((this.getUploadYear() ==  castOther.getUploadYear())
				||(this.getUploadYear()!=null && castOther.getUploadYear() !=null 
					&& castOther.getUploadYear() !=null 
					&& this.getUploadYear().equals(castOther.getUploadYear())))
			&& ((this.getUploadMon() ==  castOther.getUploadMon())
				||(this.getUploadMon()!=null && castOther.getUploadMon() !=null 
					&& castOther.getUploadMon() !=null 
					&& this.getUploadMon().equals(castOther.getUploadMon())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUploadKbn() == null ? 0 : this.getUploadKbn().hashCode());
		result = 37 * result
				+ (getEgsCd() == null ? 0 : this.getEgsCd().hashCode());
		result = 37 * result
				+ (getUploadYear() == null ? 0 : this.getUploadYear().hashCode());
		result = 37 * result
				+ (getUploadMon() == null ? 0 : this.getUploadMon().hashCode());
		return result;
	}

}